<?php

class UI_Form extends Z_Component {

    public function __construct($action,$method="POST") {
	parent::__construct("<form action=\"$action\" method=\"$method\">","</form>");
    }

    public function AddSubmit($value="Submit")
    {
	$this->add(new Z_Html_Text("<button type=\"submit\">$value</button>"));
    }

}